package com.example.lib_http

import retrofit2.Retrofit

class NetWorkFactory {
    companion object{

        private lateinit var retrofit:Retrofit
        private var noneRetrofit=NoneRetrofieImpl().createRetrofit()
        private var tokenRetrofit=TokenRetrofitImpl().createRetrofit()
        fun factory(type: HttpType):Retrofit {
            when(type){
                HttpType.NONE->{
                    retrofit= noneRetrofit
                }
                HttpType.SIGN->{

                }
                HttpType.TOKEN->{
                    retrofit= tokenRetrofit
                }
                HttpType.TOKENSIGN->{

                }
            }
            return retrofit
        }
    }
}